const  parseUrl = (url)=>{
  let params = url.split("?")[1].split("&")
  let obj = {}
  params.map(item=>obj[item.split("=")[0]] = item.split("=")[1])
  return obj
}

export default parseUrl;